import request from '@/utils/api/request'



//用户名密码登录
export function loginByJson(data) {
  return request({
    url: '/api/u/loginByJson',
    method: 'post',
    data
  })
}

// 获取验证码 mobile
export function getSMSCode(params){
return request({
  url: '/api/sms/sendRegisterOrLoginCaptcha',
  method: 'get',
  params
})

}
// 短信登录
export function loginByCode(data) {
  return request({
    url: '/api/u/loginByMobile',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo(token){
  return request({
    url: '/api/member/getInfo',
    method: 'get',
    params:token
  })
}

